package com.mine.async.domain.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseBO<T extends Model<?>> extends Model<T> implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(fill = FieldFill.INSERT)
    private Date dateCreated;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date dateUpdated;

    private String createdBy;

    private String createdName;

    private String updatedBy;

    private String updatedName;

    @TableLogic
    private Boolean isDeleted;
}
